<?php /* Smarty version 2.6.26, created on 2018-07-25 19:54:02
         compiled from D:%5Citemstudy%5Citem/home%5Ctemplates/default/goods/detail.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'D:\\itemstudy\\item/home\\templates/default/goods/detail.html', 1, false),array('modifier', 'cat', 'D:\\itemstudy\\item/home\\templates/default/goods/detail.html', 2, false),array('modifier', 'img_size', 'D:\\itemstudy\\item/home\\templates/default/goods/detail.html', 32, false),array('modifier', 'base64_encode', 'D:\\itemstudy\\item/home\\templates/default/goods/detail.html', 227, false),array('modifier', 'truncate', 'D:\\itemstudy\\item/home\\templates/default/goods/detail.html', 313, false),)), $this); ?>
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','c' => "get_one:smarty.get.id",'v' => 'row'), $this);?>

<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'shop','v' => 'sprow','c' => ((is_array($_tmp="get_one:")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['row']['shop_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['row']['shop_id']))), $this);?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_tpl_vars['row']['title']; ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
css/common_uqcms.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/raty/jquery.raty.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/public.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/detail.css">
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="cname_bar">
	<div class="cname">
		<a href="index.php">首页 >></a> 
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'category','v' => 'cats','c' => ((is_array($_tmp="get_parents_name:")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['row']['cid']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['row']['cid']))), $this);?>

		<?php $_from = $this->_tpl_vars['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['c']):
?>
			<a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['ck']; ?>
"><?php echo $this->_tpl_vars['c']; ?>
</a> >>
		<?php endforeach; endif; unset($_from); ?>
		<?php echo $this->_tpl_vars['row']['title']; ?>

	</div>
</div>
<div class="main_bar">
	<div class="main">
		<div class="httl"></div>
		<div class="hmain">
			<div class="mimg"> 
				<div class="bimg">
					<div class="jqzoom">
						<img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['row']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '400x400') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '400x400')); ?>
" jqimg="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['row']['images']; ?>
"  class="main_middle_img <?php if ($this->_tpl_vars['__IMG__'] == ''): ?>fixed<?php endif; ?>"/> 
					</div> 
				</div>
				<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'simg','c' => "goods_simg:smarty.get.id"), $this);?>

				<div class="simg">
					<div class="simg_lft"><a href="javascript:;" id="simg_right"></a></div>
					<div class="simg_con">
						<?php $_from = $this->_tpl_vars['simg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>				
							<a href="javascript:;">
								<img 
									src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['s']['url'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
" 
									data-img="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['s']['url'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '400x400') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '400x400')); ?>
" 
									data-big="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['s']['url']; ?>
"
								/>
							</a>
						<?php endforeach; endif; unset($_from); ?>
					</div>
					<div class="simg_rit"><a href="javascript:;" id="simg_left"></a></div>
				</div>
				<div class="fcollect">
					<div class="fshare">
						<div class="bdsharebuttonbox">
							<a href="#" class="bds_more" data-cmd="more"></a>
							<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
							<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
							<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
							<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
						</div> 
					</div>
					<div class="fclt">
						<a href="javascript:;" class="collect_goods">
							<?php if ($this->_tpl_vars['row']['collect_status']): ?>已经收藏<?php else: ?>收藏产品<?php endif; ?>
						</a>
					</div> 
				</div>
			</div>
 
			<div class="info">
				<?php if ($_SESSION['shop']['spid'] == $this->_tpl_vars['row']['shop_id']): ?>
					<!--店铺登录直接进店铺编辑-->
					<div class="online_edit"><a href="<?php echo $this->_tpl_vars['__URI__']; ?>
member.php?m=goods&a=edit&id=<?php echo $this->_tpl_vars['row']['id']; ?>
" target="_blank">编辑</a></div>
				<?php endif; ?>
				<h1><?php echo $this->_tpl_vars['row']['title']; ?>
</h1>
				<h3><?php echo $this->_tpl_vars['row']['intro']; ?>
</h3> 
				<!--传统价格-->
				<div class="con mprice">
					<?php if ($this->_tpl_vars['row']['sk_status'] == '1' || $this->_tpl_vars['row']['sk_status'] == '2'): ?>
						<!--活动价格-->
						<div class="price_act"> 
							<?php if ($this->_tpl_vars['row']['sk_status'] == '1'): ?>
								<div class="name">秒杀进行中</div> 
								<div class="next_time">
									<div class="name2">距离结束还剩 </div>
									<div class="djs_box" data-diff="<?php echo $this->_tpl_vars['row']['etime_cha']; ?>
"></div>
								</div>
							<?php elseif ($this->_tpl_vars['row']['sk_status'] == '2'): ?>
								<div class="name">商品参加秒杀的商品，请提前加入购物车！</div> 
								<div class="next_time" >
									<div class="name2">距离开始还有 </div>
									<div class="djs_box" data-diff="<?php echo $this->_tpl_vars['row']['stime_cha']; ?>
"></div>
								</div>
							<?php endif; ?> 
						</div> 
					<?php endif; ?>
					<div class="mpriceBox">
						<div class="mprice_l">  
							<?php if ($this->_tpl_vars['row']['promote_type'] == '2'): ?>
								<div class="tuan_pr">
									<dl class="bpr">
										<dt>拼团价</dt>
										<dd class="pr"><i>¥</i><span class="tuan_price"><?php echo $this->_tpl_vars['row']['group_price']; ?>
</span></dd> 
									</dl> 
									<dl>
										<dt>现价</dt>
										<dd><i>¥</i><span class="html_price"><?php echo $this->_tpl_vars['row']['price']; ?>
</span></dd> 
									</dl>	
								</div> 
							<?php else: ?>
								<div class="buy_pr">
									<?php if ($this->_tpl_vars['row']['sk_status']): ?>		
										<dl>
											<dt>秒杀价</dt>
											<dd class="pr">
												<i>¥</i><span class="html_act_price"><?php echo $this->_tpl_vars['row']['price']; ?>
</span> 
												<s> ¥ <?php echo $this->_tpl_vars['row']['market_price']; ?>
 </s>
											</dd>
										</dl> 
									<?php else: ?>
										<dl>
											<dt>商城价</dt>
											<dd class="pr"><i>¥</i><span class="html_price"><?php echo $this->_tpl_vars['row']['price']; ?>
</span></dd> 
										</dl>
									<?php endif; ?>
								</div>
							<?php endif; ?>
						</div>
						
						<div class="mprice_r"> 
							<dd>
								<span>累计评价</span>
								<em><?php echo $this->_tpl_vars['row']['comment']; ?>
</em>
							</dd>
							<dd>
								<span>交易成功</span>
								<em><?php echo $this->_tpl_vars['row']['volume']; ?>
</em>
							</dd> 
						</div>
					</div> 
					<!--活动优惠-->
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_act','v' => 'reduce_list','c' => ((is_array($_tmp="reduce_list:")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['row']['shop_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['row']['shop_id']))), $this);?>

					<?php if ($this->_tpl_vars['reduce_list']): ?>
						<div class="promotion">
							<dl>
								<dt>优惠</dt>
								<dd>
									<div class="probox">
									<i>满减</i>
									<?php $_from = $this->_tpl_vars['reduce_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['n'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['n']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i']):
        $this->_foreach['n']['iteration']++;
?>
										<span><?php echo $this->_tpl_vars['i']['name']; ?>
<?php if (($this->_foreach['n']['iteration'] == $this->_foreach['n']['total']) == 1): ?><?php else: ?>,<?php endif; ?></span>
									<?php endforeach; endif; unset($_from); ?>
									</div>
								</dd>
							</dl> 
						</div>
					<?php endif; ?>
				</div>
				<div class="con fw">
					<dl>
						<dt>服务</dt>
						<dd>本商品由品牌商<?php if ($this->_tpl_vars['sprow']['prov_cn']): ?>从<?php echo $this->_tpl_vars['sprow']['prov_cn']; ?>
<?php echo $this->_tpl_vars['sprow']['city_cn']; ?>
<?php echo $this->_tpl_vars['sprow']['dist_cn']; ?>
<?php else: ?>提供<?php endif; ?>发货，并提供售后服务。</dd>
					</dl>
				</div>
				<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_sku','v' => 'sku','c' => "get_list:smarty.get.id"), $this);?>
 
				<?php if ($this->_tpl_vars['sku']['list']): ?> 
					<!--产品规格--> 
					<div class="sku_box"> 
						<?php $_from = $this->_tpl_vars['sku']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
							<dl>
								<dt><?php echo $this->_tpl_vars['i']['name']; ?>
</dt>
								<dd> 
									<?php $_from = $this->_tpl_vars['i']['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?> 
										<a data-id="<?php echo $this->_tpl_vars['v']['id']; ?>
" title="<?php if ($this->_tpl_vars['v']['img_name']): ?><?php echo $this->_tpl_vars['v']['img_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['v']['name']; ?>
<?php endif; ?>" href="javascript:;">
											<?php if ($this->_tpl_vars['v']['img_url']): ?>
												<img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['img_url'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
" 
													 data-img="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['img_url'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '400x400') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '400x400')); ?>
" 
													 data-big="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['v']['img_url']; ?>
" 
													 width="30" />
											<?php endif; ?>
											<em><?php if ($this->_tpl_vars['v']['img_name']): ?><?php echo $this->_tpl_vars['v']['img_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['v']['name']; ?>
<?php endif; ?></em> 
											<i></i> 
										</a>
									<?php endforeach; endif; unset($_from); ?>
								</dd>
							</dl>
						<?php endforeach; endif; unset($_from); ?> 
					</div>
					<input type="hidden" class="sku_id" id="sku_id" autocomplete="off" value="">
				<?php else: ?>
					<input type="hidden" class="sku_id" id="sku_id" autocomplete="off" value="<?php echo $this->_tpl_vars['sku']['id']; ?>
">
				<?php endif; ?>
				
				<!--数量加入购物车-->
				<div class="con fw">
					<dl>
						<dt>数量</dt>
						<dd>
							<div class="Gnum"> 
								<input type="text" size="3" value="1" id="buy_num" autocomplete="off"/>
								<span>
									<a href="javascript:;" id="plus_button" max-num="<?php echo $this->_tpl_vars['row']['stock']; ?>
" >+</a>
									<a href="javascript:;" id="minus_button">-</a> 
								</span>
							</div>
							<div class="kc">库存 <i class="kc_num"><?php echo $this->_tpl_vars['row']['stock']; ?>
</i> 件</div>
						</dd>
					</dl>
				</div>
				<div class="con"> 
					<div class="Gcart">
						<input type="hidden" id="goods_id" value="<?php echo $_GET['id']; ?>
"/>
						<input type="hidden" id="shop_id" value="<?php echo $this->_tpl_vars['sprow']['id']; ?>
"/>
						<input type="hidden" id="share_id" value="<?php echo $_GET['share_id']; ?>
"/>
						<!--加入购物车-->
						<?php if ($this->_tpl_vars['row']['promote_type'] == '2'): ?>
			<!--拼团购买-->
			<a href="javascript:;" class="<?php if ($this->_tpl_vars['row']['stock'] == '0'): ?>yyue_n<?php else: ?>yyue<?php endif; ?> nowbuy" data-type="2"><?php echo $this->_tpl_vars['row']['p_number']; ?>
人拼团购买</a>
			<a href="javascript:;" class="<?php if ($this->_tpl_vars['row']['stock'] == '0'): ?>yyue_n2<?php else: ?>yyue2<?php endif; ?> nowbuy" data-type="1">现价单独购买</a> 
						<?php else: ?>
			<!--普通购买-->
			<a href="javascript:;" class="<?php if ($this->_tpl_vars['row']['stock'] == '0'): ?>yyue_n<?php else: ?>yyue<?php endif; ?> nowbuy" data-type="0"><i style="background:url(<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/w_cart.png); background-size:21px auto;"></i>加入购物车</a> 
			<a href="javascript:;" class="<?php if ($this->_tpl_vars['row']['stock'] == '0'): ?>yyue_n2<?php else: ?>yyue2<?php endif; ?> nowbuy" data-type="1">立即购买</a> 
						<?php endif; ?>
					</div>  
					<div class="wapbuycode">
						<a href="javascript:;" title="手机购买"><i>手机购买</i></a>
						<span><img src="index.php?m=ajax&a=qrcode&size=3&code=<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['__HOST__'])) ? $this->_run_mod_handler('cat', true, $_tmp, 'wap.php?m=goods&a=detail&id=') : smarty_modifier_cat($_tmp, 'wap.php?m=goods&a=detail&id=')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['row']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['row']['id'])))) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : base64_encode($_tmp)); ?>
"></span>
					</div>
				</div> 
				<div class="service_info">
					<dl>
						<dt>服务承诺</dt>
						<dd>
							<a href="javascript:;">正品保证</a>
							<a href="javascript:;">七天无理由退货</a>
						</dd>
					</dl>
				</div>
			</div>
			<div class="ltl">
				<div class="name"><h3>店家推荐</h3></div>
				<div class="con">
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'look','c' => "goods_hot:gid=smarty.get.id&limit=3"), $this);?>

					<?php if ($this->_tpl_vars['look']): ?>
						<?php $_from = $this->_tpl_vars['look']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['l']):
?> 	
							<a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['l']['id']; ?>
">
								<span><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['l']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '160x160') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '160x160')); ?>
"/></span>
								<p>￥<?php echo $this->_tpl_vars['l']['price']; ?>
</p>
							</a>
						<?php endforeach; endif; unset($_from); ?> 
					<?php endif; ?>	
				</div>
			</div> 
		</div>
		
		<!--下部数据-->
		<div class="btm">
			<div class="lft"> 
			 	<!--店铺信息-->
				<div class="sp_info">
					<div class="nm">
						<span><a href="index.php?m=shop&id=<?php echo $this->_tpl_vars['sprow']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['sprow']['name']; ?>
</a></span> 
						<a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $this->_tpl_vars['sprow']['qq']; ?>
&site=qq&menu=yes" target="_blank"><img src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/chat.png" width="20"/></a>
					</div>
					<div class="service"> 
						<dl>
							<dt>描述</dt>
							<dd><?php echo $this->_tpl_vars['sprow']['score']['goods']; ?>
</dd>
						</dl>
						<dl>
							<dt>服务</dt>
							<dd><?php echo $this->_tpl_vars['sprow']['score']['service']; ?>
</dd>
						</dl>
						<dl>
							<dt>物流</dt>
							<dd><?php echo $this->_tpl_vars['sprow']['score']['logistics']; ?>
</dd>
						</dl>
					</div> 	  
					<div class="sp_desc sc">
						<a href="index.php?m=shop&id=<?php echo $this->_tpl_vars['row']['shop_id']; ?>
" target="_blank" class="ch">进入店铺</a>
						<a href="javascript:;" class="collect_shop">
							<?php if ($this->_tpl_vars['sprow']['collect_status'] == 1): ?>已经收藏<?php else: ?>店铺收藏<?php endif; ?>
						</a>
					</div>
				</div>
				<!--产品分类-->
				<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'cats','c' => ((is_array($_tmp="group:")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['row']['shop_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['row']['shop_id']))), $this);?>

				<?php if ($this->_tpl_vars['cats']): ?>
					<div class="sp_cats">
						<div class="name"><span>店铺分类</span></div>
						<div class="con">
							<?php $_from = $this->_tpl_vars['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
								<ul>
									<li>
										<span><i>+</i></span>
										<a href="index.php?m=shop&id=<?php echo $this->_tpl_vars['row']['shop_id']; ?>
&group_cid=<?php echo $this->_tpl_vars['i']['id']; ?>
"><?php echo $this->_tpl_vars['i']['name']; ?>
</a> 
									</li>
								</ul> 
							<?php endforeach; endif; unset($_from); ?>		
						</div>
					</div>
				<?php endif; ?>
				<!--销量排行-->
				<div class="lgs gslist">
					<div class="name"><span>销量排行</span></div>
					<div class="con">
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'hot','c' => "goods_hot:gid=smarty.get.id&limit=6"), $this);?>

					<?php if ($this->_tpl_vars['hot']): ?>
						<?php $_from = $this->_tpl_vars['hot']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['h']):
?> 
							<dl>
								<dt><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['h']['id']; ?>
"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['h']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
" class="lazy"></a></dt>
								<dd>
									<a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['h']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['h']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 12, "..") : smarty_modifier_truncate($_tmp, 12, "..")); ?>
</a>
									<span>￥:<?php echo $this->_tpl_vars['h']['price']; ?>
</span>	
									<span>售出:<?php echo $this->_tpl_vars['h']['volume']; ?>
</span>	
								</dd>
							</dl>
						<?php endforeach; endif; unset($_from); ?>
					<?php else: ?>
						<dl><span style="width:100%; text-align:center; color:#999999; float:left;">暂无销量</span></dl>	
					<?php endif; ?>
					</div> 
				</div>
				 
			</div> 
			<!--右侧详情描述-->
			<div class="rit">
				<div class="hcon">
					<div class="hcontent desc_name">  
						<a href="javascript:;" doid="0" class="ch">商品详情</a> 
						<a href="javascript:;" doid="1">商品评价（<?php echo $this->_tpl_vars['row']['comment']; ?>
）</a>
						<a href="javascript:;" doid="2">售后服务</a>
					</div> 
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'attr_list','c' => "get_attr_list:smarty.get.id"), $this);?>
 
					<div class="desc_content detailContent">
						<div class="attr">
						<?php $_from = $this->_tpl_vars['attr_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['attr']):
?>
							<dl>
								<dt><?php echo $this->_tpl_vars['attr']['name']; ?>
 ：</dt> 
								<dd><?php echo $this->_tpl_vars['attr']['value']; ?>
</dd>
							</dl>
						<?php endforeach; endif; unset($_from); ?>
						</div>
						<?php echo $this->_tpl_vars['row']['content']; ?>

					</div> 
					<!--评论留言--> 
					<div class="desc_content hcomment">
						<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/goods/comment.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
					</div>  
					<div class="desc_content server_info" style="display:none;">
						<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'news','v' => 'news_row','c' => "get_one:alias=server_info"), $this);?>

						<?php if ($this->_tpl_vars['news_row']['content']): ?><?php echo $this->_tpl_vars['news_row']['content']; ?>
<?php endif; ?> 
					</div>
					
				</div>
			</div>
		</div>
	</div>
</div> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
var PUBLIC_PATH	= '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
';
var APP_PATH	= '<?php echo $this->_tpl_vars['__APP__']; ?>
';
var IMG_HOST 	= '<?php echo $this->_tpl_vars['__IMG__']; ?>
'; 
</script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.fly.min.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.jqzoom.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/raty/jquery.raty.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/common.js?v=<?php echo $this->_tpl_vars['js_version']; ?>
"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/cart.js?v=<?php echo $this->_tpl_vars['js_version']; ?>
"></script>  
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/rside.js?v=<?php echo $this->_tpl_vars['js_version']; ?>
"></script> 
<script type="text/javascript"> 
lazyload(); 
countDown('.djs_box');
$(function(){ 
	$(".wapbuycode").hover(function(){
		$('span',this).show();
	},function(){
		$('span',this).hide();
	});

	// 主图的轮播
	$(".jqzoom").jqueryzoom({
		xzoom: 400, //放大图的宽度(默认是 200)
		yzoom: 400, //放大图的高度(默认是 200)
		offset: 100 , //离原图的距离(默认是 10)
		position: "left", //放大图的定位(默认是 "right")
		preload: 1
	});
	$(".simg a").mouseover(function(){
		$this = $(this);
		var bimg = $('img ',$this).attr('data-img');
		$(".bimg img").attr('src',bimg); 
		var bgimg = $('img ',$this).attr('data-big');
		$(".bimg img").attr('jqimg',bgimg); 
	});
 	$(".sku_box dl dd a").click(function(){ 
		$this = $(this); 
		var sku_img = $this.find('img').attr('data-img');
		if(sku_img != 'undefined'){
			$(".bimg img").attr('src',sku_img); 
			 var bgimg = $('img ',$this).attr('data-big');
			$(".bimg img").attr('jqimg',bgimg); 
		} 
	});
	// 评分
	$('.box_score').raty({ 
		score:0,
		iconRange: [
			{ range: 1, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 2, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 3, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 4, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 5, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' }
	  	],
		click:function(score ,evt){
			 $("#score").val(score);
		},
		hints: ['a', null, '', undefined, '*_*']
	});
	
	$('.pf').raty({
	  	score: function() {
			return $(this).attr('data-score');
	  	},iconRange: [
			{ range: 1, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 2, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 3, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 4, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' },
			{ range: 5, on: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-on.png', off: '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/star-off.png' }
	  	],readOnly: true
	});
	
	// 切换部分
	$(".desc_name a").click(function(){
		$this = $(this);
		doid = $this.attr('doid');
		$this.addClass("ch").siblings().removeClass('ch'); 
		if(doid == 0){
			$(".desc_content").show();
			$(".desc_content").eq(2).hide(); 
		}else{ 
			$(".desc_content").hide();
			$(".desc_content").eq(doid).show();
		} 
	}); 
	 
	// SKU的处理
	<?php if ($this->_tpl_vars['sku']['json']): ?>
		var sku_json_data = <?php echo $this->_tpl_vars['sku']['json']; ?>
;
		$(".sku_box dl dd a").click(function(){
			$this = $(this); 
			if($this.hasClass('selected')){ 
				$this.removeClass('selected');
			}else{
				$this.addClass("selected").siblings().removeClass('selected');
			} 
			check_sku_price();
		}); 
		function check_sku_price(){
			var _val = '';
			$('.sku_box dl dd a.selected').each(function(){
				var $this = $(this);
				var val = $this.attr("data-id");  
				_val+=_val!=""?",":"";
				_val+=val; 
			}); 
			if(sku_json_data[_val] == undefined ||sku_json_data[_val] == ''){ 
				$('#sku_id').val('');
			}else{
				var sku_pr = sku_json_data[_val]['price'];
				var sku_act_pr = sku_json_data[_val]['act_price'];  
				var sku_grp_pr = sku_json_data[_val]['grp_price'];  
				var sku_sk = sku_json_data[_val]['stock'];
				var sku_id = sku_json_data[_val]['sku_id'];
				// IS DO 
				if(sku_sk <= '0'){
					$('.addcart').removeClass('yyue').addClass('yyue_n');
					$('.nowbuy').removeClass('yyue2').addClass('yyue_n2');
					$('.groupbuy').removeClass('yyue').addClass('yyue_n');
				}else{
					$('.addcart').removeClass('yyue_n').addClass('yyue');
					$('.nowbuy').removeClass('yyue_n2').addClass('yyue'); 
					$('.groupbuy').removeClass('yyue_n').addClass('yyue'); 
				}
				$('.html_price').html(sku_pr); 
				$('.html_price').html(sku_act_pr); 
				$('.tuan_price').html(sku_grp_pr);
				
				$('.kc_num').html(sku_sk);
				$("#plus_button").attr('max-num',sku_sk); 
				$('#sku_id').val(sku_id); 
				sku_error_close();
			}
		}
	<?php endif; ?>
}); 

window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
$(function(){
	SysSecond = parseInt($(".next_time").attr("data-time")); 
	SetRemainTime();
	InterValObj = window.setInterval(SetRemainTime, 1000); 
});
</script> 